﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace NP.BPMReportPlatform.Entities.BPM_Business.Reports
{
    /// <summary>
    /// CommonApprovalProcess 报表的字段配置表
    /// </summary>
    public class CommonApprovalProcessConfig
    {
        /// <summary>
        /// 唯一ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public Guid Id { get; set; }

        public string BTID { get; set; }

        /// <summary>
        /// 字段名称
        /// </summary>
        public string Field { get; set; }

        /// <summary>
        /// 是否查询项
        /// </summary>
        public bool IsSearchItem { get; set; } = false;

        /// <summary>
        /// 是否精确查询
        /// </summary>
        public bool IsAccurate { get; set; } = false;

        /// <summary>
        /// 标识CommonApprovalProcess第几个字段
        /// </summary>
        public int SortIndex { get; set; } = 0;

        /// <summary>
        /// 字段类型 text=文本型，date=日期类型，用于设置搜索框，select-single=下拉框 单选，select-multiple 下拉框多选
        /// </summary>
        public string FieldType { get; set; }

        /// <summary>
        /// 排序，用于查询项和导出字段位置排序
        /// </summary>
        public int SortNum { get; set; } = 0;

        /// <summary>
        /// 下拉框内容
        /// </summary>
        public string SelectItems { get; set; }

        /// <summary>
        /// 字段组合显示规则
        /// </summary>
        public string FieldCombine { get; set; }

        /// <summary>
        /// 是否在列中显示
        /// </summary>
        public bool IsShowColumn { get; set; }

        /// <summary>
        /// 列宽
        /// </summary>
        public int? ColumnWidth { get; set; }
    }
}
